package com.ai.spi;


import java.util.Iterator;
import java.util.List;
import java.util.ServiceLoader;

/**
 * @ Tool：IntelliJ IDEA
 * @Company: asia info
 * @ Author：mis_wu
 * @ Date：2025-05-09-10:36
 * @ Version：1.0
 * @ Description：SPI
 */
public class TestApi {

    public static void main(String[] args) {

        ServiceLoader<Search> serviceLoader = ServiceLoader.load(Search.class);

        for (Search search : serviceLoader) {
            List<String> strings = search.searchDoc("搜索内容111");
        }
    }
}
